import {postRequest, postRequestPromise} from "@/utils/postRequest";
import request from "@/utils/request";

export async function addWhiteList(params: any) {
  return postRequestPromise('/api/v1/apiWhitelist/add', params);
}
export async function updateWhiteList(params: any) {
  return postRequestPromise('/api/v1/apiWhitelist/update', params);
}
export async function deleteWhiteList(params: any,data: any) {
  return request('/api/v1/apiWhitelist/delete', {
    method: 'POST',
    data: data,
    params: params,
  });
}
export async function getWhiteList(params: any,data: any) {
  return request('/api/v1/apiWhitelist/list', {
    method: 'POST',
    data: data,
    params: params,
  });
}
export async function deleteWhiteListByArr(params: any,data: any) {
  return request('/api/v1/apiWhitelist/deleteList', {
    method: 'POST',
    data: params,
  });
}
